<script>
<? if($msg){ ?>
top.message("<?=$msg?>");
parent.location.reload();
<? } ?>
</script>